

class Arrays:

    # param int[]
    @staticmethod
    def hashCode(a):
        if a is None:
            return 0

        result = 1
        for element in a:
            result = 31 * result + element

        return result

    @staticmethod
    def fill(li, start, end, value):
        if li is None or start is None or end is None or value is None:
            return
        i = start
        while i < end:
            li[i] = value
            i += 1
